luci-mod-network: DNS - support filtering A or AAAA records
authorHannu Nyman <[email protected]>
Sat, 12 Nov 2022 18:54:59 +0000 (20:54 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:45:03 +0000 (13:45 +0200)
commitab6ad70702836350e2be9e1b19fc90bca1fb64c4
treea54d276c6b3dc6cba4543b0b56627d62399a5e60
parent7786cff2a132a675582c08f127b15070d4233137
luci-mod-network: DNS - support filtering A or AAAA records

Support Dnsmasq 2.87-5 feature to filter DNS results:
* remove IPv6 AAAA records and return only IPv4 addresses
* remove IPv4 A records and return only IPv6 addresses

Especially the removal of IPv6 AAAA records can be useful with
ISPs that provide IPv6 address resolving but do not actually
offer IPv6 routing/connectivity.

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit 20b765c77b479d1265fd7770b285addceabae32e)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js